import { watch } from 'fs';

//监听文件变化
watch('./files', (eventType, filename) => {
    console.log('eventType', eventType);
    if (filename) {
        console.log('filename', filename);
    } else {
        console.log('filename not provided');
    }
});